#!/usr/bin/python

import tasks, cgi



args = cgi.FieldStorage()

if "id" in args:
    chng = args["id"].value
else:
    chng = None


print("Content-type: text/html\n\n")
print(tasks.loadTasks(chng))
